<template>
  <h2 v-color>Child组件</h2>
  <div>Child----{{ childInjectValue }}</div>
</template>

<script setup lang='ts'>
import { inject } from 'vue'
const childInjectValue = inject('globalValue')
</script>
<style lang='less' scoped>
</style>